package com.example.phonestore.service;

import com.example.phonestore.entity.User;
import com.example.phonestore.util.JsonResult;
import jakarta.servlet.http.HttpSession;

public interface UserService {
    JsonResult login(String username, String password, HttpSession session);

    JsonResult register(String username,String password);

    JsonResult updatePassword(Integer uid,String oldPassword,String newPassword);

    JsonResult updateUser(User user);

    User showUser(Integer uid);

}
